package hapi.ui;

import hapi.event.Notifier;

typedef DoubleClickEvent = UserInterfaceEvent<Clickable>;
typedef ClickEvent = UserInterfaceEvent<Clickable>;

interface Clickable {
	public var onClick(default, null):Notifier<ClickEvent>;
	public var onDoubleClick(default, null):Notifier<DoubleClickEvent>;

	public function click():Void;
	public function doubleClick():Void;
}
